﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Biciq.Logica;
using Biciq.Datos;

namespace Biciq.Web.UI.Account
{
    public partial class ChangePassword : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void ChangePasswordPushButton_Click(object sender, EventArgs e)
        {
            SecurityService servicio = new SecurityService();
            Result resultado = servicio.changePassword(ChangeUserPassword.UserName, ChangeUserPassword.CurrentPassword, ChangeUserPassword.NewPassword);
            if (resultado.estado)
            {
                Response.Redirect("ChangePasswordSuccess.aspx");
            }
        }

        protected void ChangeUserPassword_ChangingPassword(object sender, LoginCancelEventArgs e)
        {
            
        }

        
      
    }
}
